package com.example.springhook;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;

@Configuration
@Import(MyImportBeanDefinitionRegistrar.class)
public class MyConfig {

    @Bean(initMethod = "initMethod",destroyMethod = "destroyMethod")
    public MyAware myAware(){
        return new MyAware();
    }

}
